package com.tem.finance.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资金流-业务关联处理
 * </p>
 *
 * @author 陈辉
 * @since 2023-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bill")
@ApiModel(value="Bill对象", description="资金流-业务关联处理")
public class Bill implements Serializable {

    private static final long serialVersionUID=187934598082334L;

    @ApiModelProperty(value = "资金流-业务关联处理")
    @TableId(value = "bill_id", type = IdType.AUTO)
    private Long billId;

    @ApiModelProperty(value = "企业")
    @TableField("sys_branch_office_id")
    private Long sysBranchOfficeId;

    @ApiModelProperty(value = "对应业务类型")
    @TableField("ref_type")
    private Integer refType;

    @ApiModelProperty(value = "对应业务核销单id")
    @TableField("ref_id")
    private Long refId;

    @ApiModelProperty(value = "线上支付历史 0线下非第三方平台")
    @TableField("payment_history_id")
    private Long paymentHistoryId;

    @ApiModelProperty(value = "资金账户")
    @TableField("finance_account_id")
    private Long financeAccountId;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
